package com.ipkiss.incomespringboot.mapper;

import com.ipkiss.incomespringboot.model.param.UserParam;
import org.apache.ibatis.annotations.Update;

/**
 * @author WuYongheng
 * @date 2024/5/11
 * @describe
 */
public interface UsersMapper {

    @Update("update user set loginCount = loginCount + 1 , lastLoginTime = now() where username = #{username} and password = #{password}")
    int login(UserParam param);

}